getService ( self, name=None )
Locate a service in context
If name is not supplied, return the Service object which is
responsible for the object this method is called on. (Aka
"the responsible Service".) In the case of a Feature, that
would be the Service responsible for the Feature's Element.
If name is supplied, it must be a string containing a dotted
name, or a sequence of path components (e.g. "foo.bar" or
("foo","bar") are valid names). The contextually closest
Service to the "responsible Service" which matches the name
will be returned. An exception may result if the named Service
does not exist.
|